﻿using System;
using System.Runtime.Serialization;

namespace JTLeigh.Commerce.Spencer.Features.ProductFeedback.Service.Contracts.Runtime.GetProductFeedback
{

	/// <summary>
	/// Data contract representing a product recommendation for a single product by a single 
	/// customer on a single attribute.
	/// </summary>
	/// <remarks>
	/// <para>
	/// Products can be recommended both overall (&quot;In general?&quot;) and on individual 
	/// attributes (&quot;For a friend?&quot;, &quot;For a parent?&quot;, etc).
	/// </para>
	/// </remarks>
	[DataContract(Name = "ProductRecommendationAttributeValue", Namespace = "http://schemas.jtleigh.com/Commerce/Spencer/Features/ProductFeedback/1.0/Runtime/GetProductFeedback/")]
	public class ProductRecommendationAttributeValue
	{

		#region Properties

		/// <summary>
		/// Gets or sets the attribute identifier.
		/// </summary>
		/// <value>An attribute identifier <see cref="Guid"/>.</value>
		[DataMember(Name = "AttributeId", IsRequired = true)]
		public Guid AttributeId { get; set; }

		/// <summary>
		/// Gets or sets the value of the attribute.
		/// </summary>
		/// <value><see langword="true"/> if the recommendation is positive, <see langword="false"/>
		/// if the recommendation is negative.</value>
		[DataMember(Name = "Value", IsRequired = true)]
		public bool Value { get; set; }

		#endregion // Properties

	}

}
